//goods_goodsFirstCATG_change
function goods_goodsFirstCATG_change(){
    var strFirstCATG = getSelectedValue("goodsFirstCATG");
    if (strFirstCATG == "" || strFirstCATG == null) {
        clearList("goodsSecondCATG");
        clearList("goodsThirdCATG");
        setDisabled("goodsSecondCATG", true);
        setDisabled("goodsThirdCATG", true);
    } else {
        ajaxRequest(getHost()+"/common/Categorytag/setsecondcategory",
                {"firstCATGId": strFirstCATG},
                goods_setGoodsSecondCATG);
    }
}

//goods_setGoodsSecondCATG
function goods_setGoodsSecondCATG(data){
    var arrSecondCATG = data.arrSecondCATG;
    setDisabled("goodsSecondCATG", false);
    setInnerHTML("goodsSecondCATG", "");
    addToList("goodsSecondCATG", "", "");
    for(var i=0; arrSecondCATG[i]; i++){
        addToList("goodsSecondCATG", arrSecondCATG[i]["SECOND_CATG_NO"], arrSecondCATG[i]["SECOND_CATG_NAME"]);
    }
}
